const fs = require('fs');

const path = require('path');

const error = require('../../common/error');

const filePath = path.resolve(__dirname,'../../temp/data.json');

module.exports=function(){

  let content=null

  try {

    content = fs.readFileSync(filePath,{encoding:'utf8'});

    content = JSON.parse(content);

  } catch (e) {

    error("读取临时数据失败，联系作者：" + e.message);

  }

  return content
}